package com.tj.bo.user.server.dao;
import com.fqgj.common.base.BaseMapper;
import com.tj.bo.user.server.entity.UserPromotionMappingInfoEntity;

/**
* User: xulin
* Date: 2020-08-19
* Time: 18:16:04.877
*/

public interface UserPromotionMappingInfoDao  extends BaseMapper<UserPromotionMappingInfoEntity> {

    UserPromotionMappingInfoEntity queryUserPromotionInfoByInviteCode(String inviteCode);

    UserPromotionMappingInfoEntity queryUserPromotionInfoByUserId(Long userId);

    UserPromotionMappingInfoEntity queryUserPromotionInfoByUserCode(String userCode);

    int updateUserPromotionInfo(Long userId, Integer inviteNum, Integer bonus);

    int updateUserPromotionInfoByUserCode(String userCode, Integer inviteNum, Integer bonus);
}